<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Treasure Island: fonction.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_groupe.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Treasure Island
   &#160;<span id="projectnumber">2.0</span>
   </div>
   <div id="projectbrief">Projet 1A</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">fonction.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fonction_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef INCLUDE_fonction</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define INCLUDE_fonction</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define ECRAN_X 800</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ECRAN_Y 600</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AGG_ZONE 100</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HIGHT 130</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define WIDTH 100</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LEVEL_MAX 5</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SEQUENCE_MAX 5</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor"></span>        </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="structstats.html">   26</a></span>&#160;        <span class="keyword">typedef</span> <span class="keyword">struct </span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        {</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="code" href="structstats.html#a58ca25ca6c9448a364b84539e42f1fa6">   28</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structstats.html#a58ca25ca6c9448a364b84539e42f1fa6">HP</a>; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="code" href="structstats.html#acf0d31ca2147094464cd9764263b98fa">   29</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structstats.html#acf0d31ca2147094464cd9764263b98fa">HP_MAX</a>; </div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="structstats.html#ab5e6fbab7a2aa8e14d8866b85c71c91e">   30</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structstats.html#ab5e6fbab7a2aa8e14d8866b85c71c91e">DPS_MAX</a>; </div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="structstats.html#abe2d76ffa1e4a42a9e974e365d11d614">   31</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structstats.html#abe2d76ffa1e4a42a9e974e365d11d614">DPS_MIN</a>; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="structstats.html#a01078e81b84cae2e78995a1174ae0b34">   32</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structstats.html#a01078e81b84cae2e78995a1174ae0b34">HC</a>; </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="structstats.html#a8259dd681a3af7574239fa1f57cb8b01">   33</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structstats.html#a8259dd681a3af7574239fa1f57cb8b01">SCORE</a>; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        }<a class="code" href="structstats.html" title="Les etats du jeu.">stats</a>; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="structpersonage.html">   40</a></span>&#160;        <span class="keyword">typedef</span> <span class="keyword">struct </span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        {</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="structpersonage.html#a80c0944640e62d3ed6c5419c1bcc0c88">   42</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#a80c0944640e62d3ed6c5419c1bcc0c88">X</a>; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="structpersonage.html#aa482c4cc86a24474e4fb19b5b5978778">   43</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#aa482c4cc86a24474e4fb19b5b5978778">Y</a>; </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="structpersonage.html#a2dd51e03005d5cb52315290d27f61870">   44</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#a2dd51e03005d5cb52315290d27f61870">W</a>; </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="structpersonage.html#affa487e8e3cc48473cfc05c0ce0165e9">   45</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#affa487e8e3cc48473cfc05c0ce0165e9">H</a>; </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="structpersonage.html#a12c42fc3786b03b2b8e04121751f9d8a">   46</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#a12c42fc3786b03b2b8e04121751f9d8a">coll</a>; </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="structpersonage.html#abdeff3a58840d5d51ad588b2bbd412a6">   47</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#abdeff3a58840d5d51ad588b2bbd412a6">agg</a>; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="structpersonage.html#a6bbc6b7e52b17450c52d8e748d6abae1">   48</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#a6bbc6b7e52b17450c52d8e748d6abae1">px</a>; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="structpersonage.html#ac765329451135abec74c45e1897abf26">   49</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#ac765329451135abec74c45e1897abf26">type</a>; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="structpersonage.html#a210b3e6ffb6e047c4ae6e2c0e737ed52">   50</a></span>&#160;        <span class="keywordtype">char</span> <a class="code" href="structpersonage.html#a210b3e6ffb6e047c4ae6e2c0e737ed52">direction</a>; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="structpersonage.html#a6248222c84852a309405bdd02d2ee3e4">   51</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#a6248222c84852a309405bdd02d2ee3e4">is_fighting</a>; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="structpersonage.html#a8fc0fe5fb64383d4e6a6cd9c7ece11da">   52</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="structpersonage.html#a8fc0fe5fb64383d4e6a6cd9c7ece11da">is_alive</a>; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="structpersonage.html#accb38ed178c5a00d5a25202a8c79d5b9">   53</a></span>&#160;        <a class="code" href="structstats.html" title="Les etats du jeu.">stats</a> <a class="code" href="structpersonage.html#accb38ed178c5a00d5a25202a8c79d5b9">stat</a>; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        }<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a>; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keywordtype">int</span> <a class="code" href="fonction_8c.html#a1fb7fbd80de7e5f5a4c7e163252583a1">Collision</a>(<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> p1,<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> p2);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keywordtype">int</span> <a class="code" href="fonction_8c.html#a9f3049417eff5ef02a7beb8b8cc2a850">aggro</a>(<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> p1, <a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> p2);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fonction_8c.html#a51a98e0353665edaa3f3440dc9adc50a">fight</a>(<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> *agg, <a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> *vic); <span class="comment">//agg: agressor vic:victim</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fonction_8c.html#a0e98e01b8a6457a25cc78a9c1ba909ee">get_path</a>(<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> p,<span class="keywordtype">char</span> str[]); <span class="comment">// str:taswira *pirate*</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fonction_8c.html#a906e3eb68fb1a1cc219550cb373b1371">increment</a>(<span class="keywordtype">int</span> *lvl,<span class="keywordtype">int</span> *seq); <span class="comment">//changement de level &amp; seq</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fonction_8c.html#a225086dd98570b44ec62208037e94267">random_move</a>(<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> *p, <span class="keywordtype">int</span> xmin, <span class="keywordtype">int</span> xmax); <span class="comment">//xmin ---&gt; xmax = champ</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fonction_8c.html#a80a34d34764c3497e561ec3e14d085ca">move_to_main</a>(<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> *p, <a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> m); <span class="comment">//deplacement pirates vers richard</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keywordtype">int</span> <a class="code" href="fonction_8c.html#a3f39d5f95ac9dd0a68060eaea5189ff8">get_colorHP</a>(<span class="keywordtype">int</span> perc); <span class="comment">//barre de vie selon HP perc:% health</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fonction_8c.html#a19689f0d0e1ecaed209f5c356aa09376">set_score</a>(<a class="code" href="structpersonage.html" title="Les parametres du personnage (Principal ou ennemi)">personage</a> *p); <span class="comment">//score</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu May 23 2013 07:56:03 for Treasure Island by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
